#ifndef Random_h
#define Random_h

#include "WProgram.h"
#include <MIDI.h>

class Random {
  public:
    Random(MIDI *midi);
    void readFromSerial();
    void writeToSerial();
    void readFromMemory(int index);
    void writeToMemory(int index);
    void handleNoteOn();
    void handleNoteOff();
  private:
    MIDI * midi;
    int notemin;
    int notemax;
    int velocitymin;
    int velocitymax;
    int notes[6][5];
    int notec;
};

#endif
